﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Apollo.ParserUtils
{
    /// <summary>
    /// 运算符优先级
    /// </summary>
    public enum Precedence
    {
        LOWEST = 0,
        ASSIGN,         // = += -= *= /= %= &=  |= ^=
        LOGIC,          // & | ^ && ||
        TERNARY,        // ? :
        COMPARE,        // >  <　　>= <= == !=
        SUM,            // + -
        PRODUCT,        // * /
        CALL,           // function
        INDEX,          // array[index]
        DOT             // object.property or object.function
    }
}
